<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="CameraViewDlg" widgetVar="CameraViewDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.ViewCameraTitle}" closeOnEscape="true">

            <h:form id="CameraViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{cameraController.selected != null}">

                        <h:outputText value="#{myBundle.ViewCameraLabel_idCAMERA}"/>
                        <h:outputText value="#{cameraController.selected.idCAMERA}" title="#{myBundle.ViewCameraTitle_idCAMERA}"/>

                        <h:outputText value="#{myBundle.ViewCameraLabel_persone}"/>
                        <h:outputText value="#{cameraController.selected.persone}" title="#{myBundle.ViewCameraTitle_persone}"/>

                        <h:outputText value="#{myBundle.ViewCameraLabel_iniziodisp}"/>
                        <h:outputText value="#{cameraController.selected.iniziodisp}" title="#{myBundle.ViewCameraTitle_iniziodisp}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>

                        <h:outputText value="#{myBundle.ViewCameraLabel_finedisp}"/>
                        <h:outputText value="#{cameraController.selected.finedisp}" title="#{myBundle.ViewCameraTitle_finedisp}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>

                        <h:outputText value="#{myBundle.ViewCameraLabel_prezzo}"/>
                        <h:outputText value="#{cameraController.selected.prezzo}" title="#{myBundle.ViewCameraTitle_prezzo}"/>

                        <h:outputText value="#{myBundle.ViewCameraLabel_descrizione}"/>
                        <h:outputText value="#{cameraController.selected.descrizione}" title="#{myBundle.ViewCameraTitle_descrizione}"/>

                        <h:outputText value="#{myBundle.ViewCameraLabel_idHOTEL}"/>
                        <h:outputText value="#{cameraController.selected.idHOTEL.idHOTEL}"/>

                        <h:outputText value="#{myBundle.ViewCameraLabel_elemento}"/>
                        <h:outputText value="#{cameraController.selected.elemento.idELEMENTO}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="CameraViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
